const TokenKey = 'Championsoft-Token'
const CsrfTokenKey = 'Championsoft-Csrf-Token'

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

export function getCsrfToken() {
  return localStorage.getItem(CsrfTokenKey)
}

export function setCsrfToken(token) {
  return localStorage.setItem(CsrfTokenKey, token)
}

export function removeCsrfToken() {
  return localStorage.removeItem(CsrfTokenKey)
}
